<style>body{margin:0;
overflow:hidden;
} 
span{cursor:hand;} 
img{width:32px;height:32px;margin:1px;border:1px gray solid;}
</style>
<script>
var popWin=window.createPopup();
var LastImg;
var ShowAgain;
function showPopImg(img)
{
	LastImg=img;
	top.status=img.src;
	ShowAgain=true;
	popWin.document.body.innerHTML="<div style='border:1px solid gray;padding:2px;'><img src='"+img.src+"' onload='parent.imgLoaded(this.width,this.height,this.src);' /></div>";
	popWin.show(0,38,img.scrollWidth,img.scrollHeight,img);
}
function hidePopImg()
{
	popWin.hide();
}
function imgLoaded(w,h,src)
{
	if(ShowAgain)
	{
		ShowAgain=false;
		top.status="["+ w+","+h+"]"+src;
		if(popWin.isOpen)
		{
			popWin.show(0,38,w+6,h+6,LastImg);	
		}
	}
}
</script>